package com.didispace;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.config.server.ConfigServerApplication;
import org.springframework.cloud.config.server.EnableConfigServer;

@EnableConfigServer
@SpringBootApplication
public class Application {

	public static void main(String[] args) {
		System.out.println("-------------------------" + System.getProperty("user.home"));
		new SpringApplicationBuilder(Application.class).web(true).run(args);
	}

}

// http://localhost:7001/didispace/prod
// http://localhost:7001/didispace/prod/master
// {
//   "name": "didispace",
//   "profiles": [
//     "prod"
//   ],
//   "label": "master",
//   "version": "6134691ad0e4d2538b925432187ce54df6f912de",
//   "propertySources": [
//     {
// 	  "name": "https://gitee.com/LJiaH-1024/SpringCloudBook.git/chapter08/config-repo/didispace-prod.properties",
// 	  "source": {
// 	    "from": "git-prod-2.0-SpringCloudBook"
// 	  }
// 	},
// 	{
// 	  "name": "https://gitee.com/LJiaH-1024/SpringCloudBook.git/chapter08/config-repo/didispace.properties",
// 	  "source": {
// 	  "from": "git-default-2.0-SpringCloudBook"
// 	  }
//     }
//   ]
// }

// http://localhost:7001/didispace-prod.properties
// from: git-prod-2.0-SpringCloudBook

// http://localhost:7001/master/didispace-prod.properties
// from: git-prod-2.0-SpringCloudBook

// http://localhost:7001/encrypt/status
// {
// 	"timestamp": 1677061453495,
// 	"status": 401,
// 	"error": "Unauthorized",
// 	"message": "Full authentication is required to access this resource",
// 	"path": "/encrypt/status"
// }
// Full authentication is required to access this resource解决办法
// https://blog.csdn.net/qq_37054881/article/details/104495212